package com.liukai.todo_android.entity.vo;

import java.util.Date;

public class InsertItemVo {
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 类型id
     */
    private Long itemTypeId;
    /**
     * 描述信息
     */
    private String description;
    /**
     * 附件地址
     */
    private String attachment;
    /**
     * todo开始时间
     */
    private Date gmtStarted;
    /**
     * 计划用时
     */
    private Integer consumePlanning;
    /**
     * 0默认,1正计时,2倒计时
     */
    private Byte timingType;

    public Long getUserId() {
        return userId;
    }

    public InsertItemVo setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public InsertItemVo setTitle(String title) {
        this.title = title;
        return this;
    }

    public Long getItemTypeId() {
        return itemTypeId;
    }

    public InsertItemVo setItemTypeId(Long itemTypeId) {
        this.itemTypeId = itemTypeId;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public InsertItemVo setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getAttachment() {
        return attachment;
    }

    public InsertItemVo setAttachment(String attachment) {
        this.attachment = attachment;
        return this;
    }

    public Date getGmtStarted() {
        return gmtStarted;
    }

    public InsertItemVo setGmtStarted(Date gmtStarted) {
        this.gmtStarted = gmtStarted;
        return this;
    }

    public Integer getConsumePlanning() {
        return consumePlanning;
    }

    /**
     * 数据库里面存的秒，输入的是分钟
     *
     * @param consumePlanning
     * @return
     */
    public InsertItemVo setConsumePlanning(Integer consumePlanning) {
        this.consumePlanning = consumePlanning;
        return this;
    }

    public Byte getTimingType() {
        return timingType;
    }

    public InsertItemVo setTimingType(Byte timingType) {
        this.timingType = timingType;
        return this;
    }

    @Override
    public String toString() {
        return "InsertItemVo{" +
                "userId=" + userId +
                ", title='" + title + '\'' +
                ", itemTypeId=" + itemTypeId +
                ", description='" + description + '\'' +
                ", attachment='" + attachment + '\'' +
                ", gmtStarted=" + gmtStarted +
                ", consumePlanning=" + consumePlanning +
                ", timingType=" + timingType +
                '}';
    }
}